<?php
$tdatatbl_so_tay_huong_dan_ky_thuat=array();
	$tdatatbl_so_tay_huong_dan_ky_thuat[".NumberOfChars"]=80; 
	$tdatatbl_so_tay_huong_dan_ky_thuat[".ShortName"]="tbl_so_tay_huong_dan_ky_thuat";
	$tdatatbl_so_tay_huong_dan_ky_thuat[".OwnerID"]="";
	$tdatatbl_so_tay_huong_dan_ky_thuat[".OriginalTable"]="tbl_so_tay_huong_dan_ky_thuat";


	
//	field labels
$fieldLabelstbl_so_tay_huong_dan_ky_thuat = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelstbl_so_tay_huong_dan_ky_thuat["English"]=array();
	$fieldToolTipstbl_so_tay_huong_dan_ky_thuat["English"]=array();
	$fieldLabelstbl_so_tay_huong_dan_ky_thuat["English"]["id"] = "Id";
	$fieldToolTipstbl_so_tay_huong_dan_ky_thuat["English"]["id"] = "";
	$fieldLabelstbl_so_tay_huong_dan_ky_thuat["English"]["noi_dung"] = "Noi Dung";
	$fieldToolTipstbl_so_tay_huong_dan_ky_thuat["English"]["noi_dung"] = "";
	if (count($fieldToolTipstbl_so_tay_huong_dan_ky_thuat["English"])){
		$tdatatbl_so_tay_huong_dan_ky_thuat[".isUseToolTips"]=true;
	}
}


	
	$tdatatbl_so_tay_huong_dan_ky_thuat[".NCSearch"]=true;

	

$tdatatbl_so_tay_huong_dan_ky_thuat[".shortTableName"] = "tbl_so_tay_huong_dan_ky_thuat";
$tdatatbl_so_tay_huong_dan_ky_thuat[".nSecOptions"] = 0;
$tdatatbl_so_tay_huong_dan_ky_thuat[".recsPerRowList"] = 1;	
$tdatatbl_so_tay_huong_dan_ky_thuat[".tableGroupBy"] = "0";
$tdatatbl_so_tay_huong_dan_ky_thuat[".mainTableOwnerID"] = "";
$tdatatbl_so_tay_huong_dan_ky_thuat[".moveNext"] = 1;




$tdatatbl_so_tay_huong_dan_ky_thuat[".showAddInPopup"] = false;

$tdatatbl_so_tay_huong_dan_ky_thuat[".showEditInPopup"] = false;

$tdatatbl_so_tay_huong_dan_ky_thuat[".showViewInPopup"] = false;


$tdatatbl_so_tay_huong_dan_ky_thuat[".fieldsForRegister"] = array();

$tdatatbl_so_tay_huong_dan_ky_thuat[".listAjax"] = false;

	$tdatatbl_so_tay_huong_dan_ky_thuat[".audit"] = false;

	$tdatatbl_so_tay_huong_dan_ky_thuat[".locking"] = false;
	
$tdatatbl_so_tay_huong_dan_ky_thuat[".listIcons"] = true;
$tdatatbl_so_tay_huong_dan_ky_thuat[".edit"] = true;
$tdatatbl_so_tay_huong_dan_ky_thuat[".inlineEdit"] = true;
$tdatatbl_so_tay_huong_dan_ky_thuat[".view"] = true;

$tdatatbl_so_tay_huong_dan_ky_thuat[".exportTo"] = true;

$tdatatbl_so_tay_huong_dan_ky_thuat[".printFriendly"] = true;


$tdatatbl_so_tay_huong_dan_ky_thuat[".showSimpleSearchOptions"] = false;

$tdatatbl_so_tay_huong_dan_ky_thuat[".showSearchPanel"] = true;


$tdatatbl_so_tay_huong_dan_ky_thuat[".isUseAjaxSuggest"] = true;

$tdatatbl_so_tay_huong_dan_ky_thuat[".rowHighlite"] = true;


// button handlers file names

$tdatatbl_so_tay_huong_dan_ky_thuat[".addPageEvents"] = false;

$tdatatbl_so_tay_huong_dan_ky_thuat[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatatbl_so_tay_huong_dan_ky_thuat[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatatbl_so_tay_huong_dan_ky_thuat[".isUseTimeForSearch"] = false;

$tdatatbl_so_tay_huong_dan_ky_thuat[".isUseiBox"] = false;




$tdatatbl_so_tay_huong_dan_ky_thuat[".isUseInlineEdit"] = true;
$tdatatbl_so_tay_huong_dan_ky_thuat[".isUseInlineJs"] = $tdatatbl_so_tay_huong_dan_ky_thuat[".isUseInlineAdd"] || $tdatatbl_so_tay_huong_dan_ky_thuat[".isUseInlineEdit"];

$tdatatbl_so_tay_huong_dan_ky_thuat[".allSearchFields"] = array();



$tdatatbl_so_tay_huong_dan_ky_thuat[".googleLikeFields"][] = "id";



$tdatatbl_so_tay_huong_dan_ky_thuat[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatatbl_so_tay_huong_dan_ky_thuat[".allSearchFields"])) 
{
	$tdatatbl_so_tay_huong_dan_ky_thuat[".allSearchFields"][] = "id";	
}
$tdatatbl_so_tay_huong_dan_ky_thuat[".advSearchFields"][] = "noi_dung";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("noi_dung", $tdatatbl_so_tay_huong_dan_ky_thuat[".allSearchFields"])) 
{
	$tdatatbl_so_tay_huong_dan_ky_thuat[".allSearchFields"][] = "noi_dung";	
}

$tdatatbl_so_tay_huong_dan_ky_thuat[".isTableType"] = "list";


	

$tdatatbl_so_tay_huong_dan_ky_thuat[".isDisplayLoading"] = true;

$tdatatbl_so_tay_huong_dan_ky_thuat[".isResizeColumns"] = false;





$tdatatbl_so_tay_huong_dan_ky_thuat[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatatbl_so_tay_huong_dan_ky_thuat[".strOrderBy"] = $gstrOrderBy;
	
$tdatatbl_so_tay_huong_dan_ky_thuat[".orderindexes"] = array();

$tdatatbl_so_tay_huong_dan_ky_thuat[".sqlHead"] = "SELECT id,  noi_dung";
$tdatatbl_so_tay_huong_dan_ky_thuat[".sqlFrom"] = "FROM tbl_so_tay_huong_dan_ky_thuat";
$tdatatbl_so_tay_huong_dan_ky_thuat[".sqlWhereExpr"] = "";
$tdatatbl_so_tay_huong_dan_ky_thuat[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatatbl_so_tay_huong_dan_ky_thuat[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatatbl_so_tay_huong_dan_ky_thuat[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatatbl_so_tay_huong_dan_ky_thuat[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "tbl_so_tay_huong_dan_ky_thuat";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				
		
				
		
		
		
			$tdatatbl_so_tay_huong_dan_ky_thuat["id"]=$fdata;
//	noi_dung
	$fdata = array();
	$fdata["strName"] = "noi_dung";
	$fdata["ownerTable"] = "tbl_so_tay_huong_dan_ky_thuat";
		$fdata["Label"]="Noi Dung"; 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "HTML";
	
		
		
		
		
		
	$fdata["GoodName"]= "noi_dung";
	
		$fdata["FullName"]= "noi_dung";
	
		
		$fdata["UseRTE"]=true; 
	
		
		$fdata["UseRTEFCK"] = true;
	
		
				$fdata["Index"]= 2;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=1200";
		$fdata["nRows"] = 1200;
			$fdata["EditParams"].= " cols=600";
		$fdata["nCols"] = 600;
		
		$fdata["bListPage"]=true; 
	
		
		
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatatbl_so_tay_huong_dan_ky_thuat["noi_dung"]=$fdata;

	
$tables_data["tbl_so_tay_huong_dan_ky_thuat"]=&$tdatatbl_so_tay_huong_dan_ky_thuat;
$field_labels["tbl_so_tay_huong_dan_ky_thuat"] = &$fieldLabelstbl_so_tay_huong_dan_ky_thuat;
$fieldToolTips["tbl_so_tay_huong_dan_ky_thuat"] = &$fieldToolTipstbl_so_tay_huong_dan_ky_thuat;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["tbl_so_tay_huong_dan_ky_thuat"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["tbl_so_tay_huong_dan_ky_thuat"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto13=array();
$proto13["m_strHead"] = "SELECT";
$proto13["m_strFieldList"] = "id,  noi_dung";
$proto13["m_strFrom"] = "FROM tbl_so_tay_huong_dan_ky_thuat";
$proto13["m_strWhere"] = "";
$proto13["m_strOrderBy"] = "";
$proto13["m_strTail"] = "";
$proto14=array();
$proto14["m_sql"] = "";
$proto14["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto14["m_column"]=$obj;
$proto14["m_contained"] = array();
$proto14["m_strCase"] = "";
$proto14["m_havingmode"] = "0";
$proto14["m_inBrackets"] = "0";
$proto14["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto14);

$proto13["m_where"] = $obj;
$proto16=array();
$proto16["m_sql"] = "";
$proto16["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto16["m_column"]=$obj;
$proto16["m_contained"] = array();
$proto16["m_strCase"] = "";
$proto16["m_havingmode"] = "0";
$proto16["m_inBrackets"] = "0";
$proto16["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto16);

$proto13["m_having"] = $obj;
$proto13["m_fieldlist"] = array();
						$proto18=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "tbl_so_tay_huong_dan_ky_thuat"
));

$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);

$proto13["m_fieldlist"][]=$obj;
						$proto20=array();
			$obj = new SQLField(array(
	"m_strName" => "noi_dung",
	"m_strTable" => "tbl_so_tay_huong_dan_ky_thuat"
));

$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);

$proto13["m_fieldlist"][]=$obj;
$proto13["m_fromlist"] = array();
												$proto22=array();
$proto22["m_link"] = "SQLL_MAIN";
			$proto23=array();
$proto23["m_strName"] = "tbl_so_tay_huong_dan_ky_thuat";
$proto23["m_columns"] = array();
$proto23["m_columns"][] = "id";
$proto23["m_columns"][] = "noi_dung";
$obj = new SQLTable($proto23);

$proto22["m_table"] = $obj;
$proto22["m_alias"] = "";
$proto24=array();
$proto24["m_sql"] = "";
$proto24["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto24["m_column"]=$obj;
$proto24["m_contained"] = array();
$proto24["m_strCase"] = "";
$proto24["m_havingmode"] = "0";
$proto24["m_inBrackets"] = "0";
$proto24["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto24);

$proto22["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto22);

$proto13["m_fromlist"][]=$obj;
$proto13["m_groupby"] = array();
$proto13["m_orderby"] = array();
$obj = new SQLQuery($proto13);

$queryData_tbl_so_tay_huong_dan_ky_thuat = $obj;
$tdatatbl_so_tay_huong_dan_ky_thuat[".sqlquery"] = $queryData_tbl_so_tay_huong_dan_ky_thuat;

$tableEvents["tbl_so_tay_huong_dan_ky_thuat"] = new eventsBase;

?>
